<template>
    <div>
        Sun === {{ str }} == <button @click="doClick">按钮</button>
        <slot></slot>
        <slot name="kai"></slot>
    </div>
</template>

<script>
export default {
  inject: ['str', 'click'],
  name: 'Day01SunCom',

  data () {
    return {

    }
  },

  mounted () {

  },

  methods: {
    doClick () {
      this.click('你好坏坏')
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
